package durst.data;

import com.j256.ormlite.dao.ForeignCollection;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.field.ForeignCollectionField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName="Parent")
public class Parent extends Object {
	@DatabaseField(generatedId=true)
	private int id; 
	
	@ForeignCollectionField
	private ForeignCollection<Child> children;

	public Parent() {
		
	}
	
	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public ForeignCollection<Child> getChildren() {
		return children;
	}
}
